/**
 * Copyright &copy; 2012-2016 <a href="https://github.com/thinkgem/jeesite">JeeSite</a> All rights reserved.
 */
package com.oracleandsxnd.erp.xsd.entity;

import com.fasterxml.jackson.annotation.JsonFormat;
import com.oracleandsxnd.erp.common.persistence.DataEntity;
import org.hibernate.validator.constraints.Length;

import java.util.Date;



/**
 * 发票管理Entity
 * @author 发票管理
 * @version 2019-12-21
 */
public class XsglSaleVoice extends DataEntity<XsglSaleVoice> {
	
	private static final long serialVersionUID = 1L;
	private String saleid;		// 销售id
	private String number;		// 发票号码
	private Date cdate;		// 单据日期
	private String customername;		// 客户名称
	private String dept;		// 开票部门
	private String user;		// 开票员
	private String money;		// 金额
	private Date beginCdate;		// 开始 单据日期
	private Date endCdate;		// 结束 单据日期
	private XsglSale sale;

	public XsglSale getSale() {
		return sale;
	}

	public void setSale(XsglSale sale) {
		this.sale = sale;
	}

	public XsglSaleVoice() {
		super();
	}

	public XsglSaleVoice(String id){
		super(id);
	}

	@Length(min=0, max=32, message="销售id长度必须介于 0 和 32 之间")
	public String getSaleid() {
		return saleid;
	}

	public void setSaleid(String saleid) {
		this.saleid = saleid;
	}
	
	@Length(min=0, max=50, message="发票号码长度必须介于 0 和 50 之间")
	public String getNumber() {
		return number;
	}

	public void setNumber(String number) {
		this.number = number;
	}
	
	@JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
	public Date getCdate() {
		return cdate;
	}

	public void setCdate(Date cdate) {
		this.cdate = cdate;
	}
	
	@Length(min=0, max=255, message="客户名称长度必须介于 0 和 255 之间")
	public String getCustomername() {
		return customername;
	}

	public void setCustomername(String customername) {
		this.customername = customername;
	}
	
	@Length(min=0, max=255, message="开票部门长度必须介于 0 和 255 之间")
	public String getDept() {
		return dept;
	}

	public void setDept(String dept) {
		this.dept = dept;
	}
	
	@Length(min=0, max=255, message="开票员长度必须介于 0 和 255 之间")
	public String getUser() {
		return user;
	}

	public void setUser(String user) {
		this.user = user;
	}
	
	public String getMoney() {
		return money;
	}

	public void setMoney(String money) {
		this.money = money;
	}
	
	public Date getBeginCdate() {
		return beginCdate;
	}

	public void setBeginCdate(Date beginCdate) {
		this.beginCdate = beginCdate;
	}
	
	public Date getEndCdate() {
		return endCdate;
	}

	public void setEndCdate(Date endCdate) {
		this.endCdate = endCdate;
	}
		
}